]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: destroy items's child before tooltip
authorAndrea Azzarone <azzaronea@gmail.com>
Fri, 16 Nov 2018 18:31:56 +0000 (18:31 +0000)
committerAndrea Azzarone <azzaronea@gmail.com>
Mon, 19 Nov 2018 15:51:32 +0000 (15:51 +0000)
Destroy the DashItemContainer's child from the same handler as the tooltip. This
will prevent invalid reads when the item is destroyed while its quicklist is
still open.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/781
js/ui/dash.js

index 60d0309412eec7ec4459d3f5b287472aa37433e3..ce970a6100c490b36c64e1799233ec326813c4da 100644 (file)
@@ -55,6 +55,8 @@ var DashItemContainer = new Lang.Class({
         this.animatingOut = false;
 
         this.connect('destroy', () => {
+            if (this.child != null)
+                this.child.destroy();
             this.label.destroy();
         });
     },